package com.gitee.hermer.engine.jars.dependent.logging.layouts;

import java.net.InetAddress;
import java.util.Properties;

import com.gitee.hermer.boot.jee.commons.collection.StringCache;
import com.gitee.hermer.boot.jee.commons.reflect.ClassUtils;
import com.gitee.hermer.boot.jee.commons.utils.PropertiesUtils;
import com.gitee.hermer.boot.jee.commons.utils.StringUtils;
import com.gitee.hermer.engine.jars.core.domain.EngineConstant;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;

public class SampleIPClassicConverter extends ClassicConverter{



	@Override
	public String convert(ILoggingEvent arg0) {
		try{
			return InetAddress.getLocalHost().getHostAddress();
		}catch (Exception e) {
		}
		return "0.0.0.1";
	}

}
